package demo3;

class TestDemo implements iTest {
    @Override
    public void textA() {
        System.out.println("重写testA()!");
    }

    @Override
    public void defaultMethod() {
        System.out.println("重写defaultMethod()");
    }
}

abstract class TestDemo2 implements iTest {
    public abstract void testDemo2();
}

class testDemo3 extends TestDemo2 {
    @Override
    public void testDemo2() {

    }

    @Override
    public void textA() {

    }
}

public class Test {
    public static void main(String[] args) {
        iTest.testStatic();
        TestDemo testDemo = new TestDemo();
        testDemo.defaultMethod();
    }
}
